package com.auxgroup.smarthome.inner.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.Pattern;

/**
 * Created by niuGuangzhe on 2017/8/2.
 */
@ApiModel(value = "app主页配置信息实体")
public class AppIndexPageDto {

    @ApiModelProperty(value = "app首页模板url地址，目前存在在阿里云OSS平台")
    @URL
    private String htmlUri;

    @ApiModelProperty(value = "app首页模板版本，需要自定义，严格按照vX.X.X")
    @Pattern(regexp="^v\\d+?\\.\\d+?\\.\\d+?$",message = "请严格按照版本格式填写")
    private String version;

    public String getHtmlUri() {
        return htmlUri;
    }

    public void setHtmlUri(String htmlUri) {
        this.htmlUri = htmlUri;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
